package com.project.dao.impl;

import java.sql.SQLException;

import com.project.dao.IReadNewDao;
import com.project.dao.bean.Article;

/**
 * Course 查看详情实作
 * @author Sn
 *
 */
public class ReadNewDaoImpl extends BaseDaoImpl implements IReadNewDao{

	@Override
	public Article readnew(String id) 
	{
		Article art=null;
		try 
		{
			//更新点击数
			this.getSqlMapClient().update("update_count", id);
			
			//获取课程信息
			art=(Article) this.getSqlMapClient().queryForObject("readnew", id);
		} catch (SQLException e) 
		{			
			e.printStackTrace();
		}
		return art;
	}
}
